package cn.zzuisa.bluebox.biz.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_device_record")
@ApiModel(value="Record对象", description="录音列表")
public class Record extends Model<Record> {

    @ApiModelProperty(value = "自增标识id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "录音的名称")
    @TableField("recordName")
    private String recordName;

    @ApiModelProperty(value = "管理员用户id")
    @TableField("adminId")
    private Long adminId;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "录音大小")
    @TableField("recordSize")
    private String recordSize;

    @ApiModelProperty(value = "文件位置")
    @TableField("recordUri")
    private String recordUri;

    @ApiModelProperty(value = "创建地点")
    @TableField("recordAddress")
    private String recordAddress;

    @ApiModelProperty(value = "录音质量")
    @TableField("recordQuality")
    private String recordQuality;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }
}
